//
// Created by de on 3/31/21.
//

#ifndef FORCEEIGENTEST_SQLDAOINTERFACE_H
#define FORCEEIGENTEST_SQLDAOINTERFACE_H
#include "Global/GlobalVar.h"


class SqlDaoInterface{
public:
    virtual bool connect()=0;
    virtual void disconnect()=0;
    virtual void remove(const std::string & property, const std::string & value) =0;
    virtual double average(const std::string & property="VisionConsumerTime")=0;
    virtual double count(const std::string & property="id")=0;
    virtual std::vector<WorkResult> getAll()=0;
    virtual void selectProperty(const std::string &Property, std::string & result )=0;
    virtual bool insertObject( WorkResult & workResult1)=0;
    virtual bool checkTableExist() = 0;
};
#endif //FORCEEIGENTEST_SQLDAOINTERFACE_H
